const {updateCacheIP} = require("./Action")
const {setRecord} = require("./dnspod")
const options = require("./config/data.json")


async function update(){
    updateCacheIP(function(ip){
        setRecord(options.sub_domain,ip)
    },function(ip){
        setRecord(options.sub_domain,ip)
    })
}

module.exports = update